Skip to main content
Version: 6.0.0-beta.3 - 6.0.0-beta.4

freezeBalanceV2

The interface used to stake and obtain resources. The resource type can be specified as BANDWIDTH or ENERGY. (v5.1.0 new interface)

Usage

const transaction = await tronWeb.transactionBuilder.freezeBalanceV2(amount, resource, address, options);

Parameters

ParametersDescriptionType
amountThe amount of assets to be frozen (sun), larger than 0Integer
resourceThe frozen asset type, optional BANDWIDTH or ENERGYString
addressThe account address of the frozen asset (base58 or hex)String
optionsoptional. Permission id for multi-sign and block header for contract block header info.{ permissionId: number, blockHeader: ... }

Returns

Unsigned transaction object.

Example

> const transaction = await tronWeb.transactionBuilder.freezeBalanceV2(10e6, 'BANDWIDTH', 'ownerAddress');